package ci092.trabalho;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import ci092.trabalho.Instituicao;
import javax.persistence.ManyToOne;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;
import ci092.trabalho.Candidato;

@RooJavaBean
@RooToString
@RooEntity
public class Curso {

    private String nome;

    @ManyToOne
    private Instituicao grupoC_intituicao;

    private int nivel;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "S-")
    private Date data_formatura;

    @ManyToOne
    private Candidato candidato;
}
